package com.tiger.communal.service.impl;

import java.util.List;

import com.tiger.communal.domain.TenantUnitEnclosure;
import com.tiger.communal.mapper.TenantUnitEnclosureMapper;
import com.tiger.communal.service.ITenantUnitEnclosureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【承租单位管理附件】Service业务层处理
 *
 * @author standard
 * @date 2022-09-21
 */
@Service
public class TenantUnitEnclosureServiceImpl implements ITenantUnitEnclosureService {
    @Autowired
    private TenantUnitEnclosureMapper tenantUnitEnclosureMapper;

    /**
     * 查询【承租单位管理附件】
     *
     * @param id 【承租单位管理附件】主键
     * @return 【承租单位管理附件】
     */
    @Override
    public TenantUnitEnclosure selectTenantUnitEnclosureById(Long id) {
        return tenantUnitEnclosureMapper.selectTenantUnitEnclosureById(id);
    }

    /**
     * 查询【承租单位管理附件】列表
     *
     * @param tenantUnitEnclosure 【承租单位管理附件】
     * @return 【承租单位管理附件】
     */
    @Override
    public List<TenantUnitEnclosure> selectTenantUnitEnclosureList(TenantUnitEnclosure tenantUnitEnclosure) {
        return tenantUnitEnclosureMapper.selectTenantUnitEnclosureList(tenantUnitEnclosure);
    }

    /**
     * 新增【承租单位管理附件】
     *
     * @param tenantUnitEnclosure 【承租单位管理附件】
     * @return 结果
     */
    @Override
    public int insertTenantUnitEnclosure(TenantUnitEnclosure tenantUnitEnclosure) {
        return tenantUnitEnclosureMapper.insertTenantUnitEnclosure(tenantUnitEnclosure);
    }

    /**
     * 修改【承租单位管理附件】
     *
     * @param tenantUnitEnclosure 【承租单位管理附件】
     * @return 结果
     */
    @Override
    public int updateTenantUnitEnclosure(TenantUnitEnclosure tenantUnitEnclosure) {
        return tenantUnitEnclosureMapper.updateTenantUnitEnclosure(tenantUnitEnclosure);
    }

    /**
     * 批量删除【承租单位管理附件】
     *
     * @param ids 需要删除的【承租单位管理附件】主键
     * @return 结果
     */
    @Override
    public int deleteTenantUnitEnclosureByIds(Long[] ids) {
        return tenantUnitEnclosureMapper.deleteTenantUnitEnclosureByIds(ids);
    }

    /**
     * 删除【承租单位管理附件】信息
     *
     * @param id 【承租单位管理附件】主键
     * @return 结果
     */
    @Override
    public int deleteTenantUnitEnclosureById(Long id) {
        return tenantUnitEnclosureMapper.deleteTenantUnitEnclosureById(id);
    }
}
